import Auth from './services/auth'
import System from './services/system'
import RuleChain from './services/ruleChain'
import RuleNode from './services/ruleNode'

const RequestList = [].concat(
  Auth,
  System,
  RuleChain,
  RuleNode
)

export default function (app) {
  RequestList.forEach(item => {
    app[item.method](item.path, item.fun)
  })
}
